import logging
import pytest
#封装日志
def log():
    logging.basicConfig(filename='Case.txt',filemode='w+',level=logging.DEBUG,format='%(levelname)s -> %(asctime)s -> %(message)s -> %(funcName)s')

#封装邮件


#报告
if __name__ == '__main__':
    log()
    pytest.main(['run.py','-s','--html=baogao.html'])
